return function()
    local width = 2688
    local hight = 1242
    local max_hight = 960

    local min_offse = 1

    local out_hight = 0
    local out_width = 0

    print("hight:"..hight.."  width:"..width.."  max_hight:"..max_hight)
    local min_b = 1
    for i = 0,5 do
        local h = max_hight-i*2
        local w = h*width/hight
        local a , b = math.modf(w);
        print("h:"..h.."  w:"..w)
        if a%2==1 then
            if 1-b<min_offse  then
                min_offse = 1-b
                min_b = b
                out_width = a+1
                out_hight = h
            end 
        else
            if b==0 then
                out_width = a
                out_hight = h
                break;
            else
                if b<min_offse then
                    min_offse = b
                    min_b = b
                    out_width = a
                    out_hight = h
                end 
            end
        end
    end
    print("out_hight:"..out_hight)
    print("out_width:"..out_width)
end

